package com.chaopei.thread;

/**
 * @Author Corday 天涯
 * @Date 2022/3/14 15:07
 */
public class ThreadMain {
    //负责生成线程对象，并启动它们
    public static void main(String[] args) {
//        MyCalcThread th1 = new MyCalcThread();
//        Thread th2 = new MyShowThread(th1);
//        th1.start();
//        th2.start();
        Thread w1 =new  TicketThread();
        w1.setName("窗口一");
        Thread w2 =new  TicketThread();
        w2.setName("窗口二");
        Thread w3 =new  TicketThread();
        w3.setName("窗口三");
        w1.start();
        w2.start();
        w3.start();
    }
}
